package cn.livingCloud.dto;

import cn.livingCloud.entity.core.Dept;

import java.util.List;

/**
 * Created by DingJie on 2016/5/26.
 */
public class DeptListDto extends Page<DeptDto> {
    private String name;
    private String parent_uuid;
    private DeptDto parentDeptDto;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParent_uuid() {
        return parent_uuid;
    }

    public void setParent_uuid(String parent_uuid) {
        this.parent_uuid = parent_uuid;
    }

    public DeptDto getParentDeptDto() {
        return parentDeptDto;
    }

    public void setParentDeptDto(DeptDto parentDeptDto) {
        this.parentDeptDto = parentDeptDto;
    }

    @Override
    public void addAllList(List itemList) {
        for (Object item : itemList) {
            list.add(new DeptDto((Dept) item));
        }
    }
}
